﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ucNavigation : System.Web.UI.UserControl
{
  protected void Page_Load(object sender, EventArgs e)
  {
    if (CurrentSection == "Teachers")
    {
      hlTeacher.ImageUrl = "images/buttons/teachers_up.png";
      hlTeacher.NavigateUrl = string.Empty;
    }
    else if (CurrentSection == "Students")
    {
      hlStudents.ImageUrl = "images/buttons/students_up.png";
      hlStudents.NavigateUrl = string.Empty;
    }
    else if (CurrentSection == "Settings")
    {
      hlSettings.ImageUrl = "images/buttons/settings_up.png";
      hlSettings.NavigateUrl = string.Empty;
    }
    else if (CurrentSection == "Reports")
    {
      hlReports.Src = "images/buttons/reports_up.png";
    }
  }

	private string _сurrentSection;
	public string CurrentSection
	{
		get
		{
			return _сurrentSection;
		}
		set
		{
			_сurrentSection = value;
		}
	}
}
